import request from '@/utils/request'

export function fetchPostsByTagName(pageParams) {
	return request({
		url: `/api/tag/${pageParams.tagName}`,
		method: 'get',
		params: {
			pageNum: pageParams.pageNum,
			pageSize: pageParams.pageSize
		}
	})
}
